#include "task.h"
#include "ipmi_netfn.h"

static task_table_t TaskTable[] = {
	{ {0, 0, 0, "task_msg", 0}, -1, &task_message},
	{ {0, 0, 0, "ifc_lan", 0}, -1, &task_lan},
	{ {0, 0, 0, 0, 0}, 0, 0 }
};

int main(int argc, char** argv)
{
    int i = 0;
    task_args_t task_args;
    task_args.argc = argc;
    task_args.argv = argv;
    init_command();
//    show_command_info();
    while(1){
        for(i=0;i<ARRAY_SIZEOF(TaskTable);i++){
            CREATE_TASK(i, TaskTable[i], (void*)&task_args);
        }
        sleep(1);
    }
}

